package com.zgcs.sequence.net.in;

import java.io.Serializable;
import java.util.Date;

public class MessageListPackage extends InPackage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5946030765885314786L;
	/**
	 * 信息标题
	 */
	String title;
	/**
	 * 消息类型1：邀请 2：系统 3：聊天
	 */
	int infoType;
	/**
	 * 发送时间
	 */
	Date sendTime;
	/**
	 * 邀请人ID
	 */
	int requestUserID;
	/**
	 * 邀请人称呼
	 */
	String requestUsername;
	/**
	 * 1：已邀请
	 */
	int requestFlag;
	/**
	 * 房间首字
	 */
	String keywords;
	/**
	 * 房间首成语
	 */
	String firstIdiom;
	/**
	 * 信息内容
	 */
	String infos;

	public MessageListPackage(String result) {
		super(result);
	}

	@Override
	public void parserSelf() {
		this.title = resultSpl[2];
		this.infoType = Integer.parseInt(resultSpl[3]);
		this.sendTime = new Date(Long.parseLong(resultSpl[4]));
		this.requestUserID = Integer.parseInt(resultSpl[5]);
		this.requestUsername = resultSpl[6];
		this.requestFlag = Integer.parseInt(resultSpl[7]);
		this.keywords = resultSpl[8];
		this.firstIdiom = resultSpl[9];
		this.infos = resultSpl[10];

	}
}
